package client;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

import javax.swing.*;


public class GameFrame extends JFrame{
	private static final long serialVersionUID = 1L;

	public void init(boolean host) {
		this.add(ClientMain.setup(host), BorderLayout.CENTER);
		
		this.setTitle("Spells - "+(host?"Host Client":"Non-host Client"));
		this.setVisible(true);
		this.setLocation(host?0:750, 0);
		this.pack();
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
}
